package com.zhong.learning.auto_paper.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhong.learning.auto_paper.mapper.QuestionPOMapper;
import com.zhong.learning.auto_paper.po.QuestionPO;
import com.zhong.learning.auto_paper.po.QuestionTypePO;
import com.zhong.learning.auto_paper.service.QuestionPOService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhong
 * @date 2023/7/1
 */
@Service
public class QuestionPOServiceImpl extends ServiceImpl<QuestionPOMapper, QuestionPO> implements QuestionPOService {
    private final QuestionPOMapper questionPOMapper;

    public QuestionPOServiceImpl(QuestionPOMapper questionPOMapper) {
        this.questionPOMapper = questionPOMapper;
    }

    @Override
    public List<QuestionPO> getQuestionPOByType(String type) {
        return questionPOMapper.getQuestionPOByType(type);
    }

    @Override
    public List<QuestionTypePO> getQuestionTypes() {
        return questionPOMapper.getQuestionTypes();
    }


}
